package hu.pixelesztergalyos.continuity;

import java.io.IOException;

// Realizing the Gate in Java
public class Gate extends MosaicElement implements Collideable, Drawable {
	// Constructor
	public Gate() {
		super();
	}

	// Construct in the given origin
	public Gate(float x, float y) {
		super(x, y);
	}

	// visual represents for the GUI
	public void draw() {
		throw new UnsupportedOperationException();
	}

	// The Gate has collided with a Character
	// logic in Character.hitBy()
	public void hitBy(Character character) throws IOException {
		character.hitBy(this);

	}

	// The Gate has collided with a BuildingBlock
	// never occurs
	public void hitBy(BuildingBlock buildingBlock) {
		// empty
	}

	// The Gate has collided with another Gate
	// never occurs
	public void hitBy(Gate gate) {
		// empty
	}

	// The Gate has collided with a Key
	// never occurs
	public void hitBy(Key key) {
		// empty
	}

	// The Gate has collided with a TransitionBlock
	// never occurs
	public void hitBy(TransitionBlock transitionBlock) {
		// empty
	}

	// returns the visual represent in the XML
	public char getType() {
		return 'l';
	}
}
